﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Design;

namespace _0812367_0912581
{
    public class Bullet: MySprite
    {
        private Vector2 speed;

        public Vector2 Speed
        {
            get { return speed; }
            set { speed = value; }
        }

        private bool visible;

        public bool Visible
        {
            get { return visible; }
            set { visible = value; }
        }

        public Bullet(Texture2D aImage, Point aSheetsize, Vector2 thePosition, int theColOffset, float scale, int timePerFrame, Vector2 theSpeed, bool theVisible)
            : base(aImage, aSheetsize, thePosition, theColOffset, scale, timePerFrame)
        {
            this.speed = theSpeed;
            this.Visible = theVisible;
        }

        public Bullet(Bullet aBullet)
            : base(aBullet)
        {
            this.speed = aBullet.speed;
            this.visible = aBullet.visible;
        }

        public virtual void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            UpdatePosition(gameTime);
            UpdateVisible(gameTime);
            //UpdateCollision(gameTime);
            
        }

        public virtual void UpdatePosition(GameTime gameTime)
        {

        }

        public virtual void UpdateVisible(GameTime gameTime)
        {

        }


    }
}
